home *** CD-ROM | disk | FTP | other *** search
- package com.ibm.xml.parser;
-
- import org.w3c.dom.CDATASection;
- import org.w3c.dom.Comment;
- import org.w3c.dom.ProcessingInstruction;
- import org.w3c.dom.Text;
- import org.xml.sax.SAXException;
-
- class SAXDriver$SAXDocument extends TXDocument {
- // $FF: synthetic field
- private final SAXDriver this$0;
-
- public DTD createDTD(String var1, ExternalID var2) {
- return this.this$0.dtd = super.createDTD(var1, var2);
- }
-
- public EntityDecl createEntityDecl(String var1, ExternalID var2, boolean var3, String var4) throws RuntimeException {
- if (var4 != null) {
- try {
- this.this$0.dtdHandler.unparsedEntityDecl(var1, var2.getPubidLiteral(), var2.getSystemLiteral(), var4);
- } catch (SAXException var6) {
- throw new SAXDriver.ExceptionWrapper(this.this$0, var6);
- }
- }
-
- return super.createEntityDecl(var1, var2, var3, var4);
- }
-
- public TXNotation createNotation(String var1, ExternalID var2) throws RuntimeException {
- try {
- this.this$0.dtdHandler.notationDecl(var1, var2.getPubidLiteral(), var2.getSystemLiteral());
- } catch (SAXException var4) {
- throw new SAXDriver.ExceptionWrapper(this.this$0, var4);
- }
-
- return super.createNotation(var1, var2);
- }
-
- TXText createAttributeValue(String var1) throws RuntimeException {
- return null;
- }
-
- public Text createTextNode(String var1) throws RuntimeException {
- return this.createTextNode(var1, false);
- }
-
- public TXText createTextNode(String var1, boolean var2) throws RuntimeException {
- if (this.this$0.depth > 0 && !this.this$0.pause) {
- char[] var3 = var1.toCharArray();
-
- try {
- if (var2) {
- this.this$0.documentHandler.ignorableWhitespace(var3, 0, var3.length);
- } else {
- this.this$0.documentHandler.characters(var3, 0, var3.length);
- }
- } catch (SAXException var5) {
- throw new SAXDriver.ExceptionWrapper(this.this$0, var5);
- }
- }
-
- return null;
- }
-
- public TXText createTextNode(char[] var1, int var2, int var3, boolean var4) throws RuntimeException {
- if (this.this$0.depth > 0 && !this.this$0.pause) {
- try {
- if (var4) {
- this.this$0.documentHandler.ignorableWhitespace(var1, var2, var3);
- } else {
- this.this$0.documentHandler.characters(var1, var2, var3);
- }
- } catch (SAXException var6) {
- throw new SAXDriver.ExceptionWrapper(this.this$0, var6);
- }
- }
-
- return null;
- }
-
- public CDATASection createCDATASection(String var1) throws RuntimeException {
- if (!this.this$0.pause) {
- try {
- char[] var2 = var1.toCharArray();
- this.this$0.documentHandler.characters(var2, 0, var2.length);
- } catch (SAXException var3) {
- throw new SAXDriver.ExceptionWrapper(this.this$0, var3);
- }
- }
-
- return null;
- }
-
- public Comment createComment(String var1) {
- return null;
- }
-
- public ProcessingInstruction createProcessingInstruction(String var1, String var2) throws RuntimeException {
- if (!this.this$0.pause) {
- try {
- this.this$0.documentHandler.processingInstruction(var1, var2);
- } catch (SAXException var4) {
- throw new SAXDriver.ExceptionWrapper(this.this$0, var4);
- }
- }
-
- return null;
- }
-
- public StylesheetPI createStylesheetPI(String var1, String var2, String var3, String var4, String var5) throws RuntimeException {
- if (!this.this$0.pause) {
- try {
- this.this$0.documentHandler.processingInstruction(var1, var2);
- } catch (SAXException var7) {
- throw new SAXDriver.ExceptionWrapper(this.this$0, var7);
- }
- }
-
- return null;
- }
-
- SAXDriver$SAXDocument(SAXDriver var1) {
- this.this$0 = var1;
- this.this$0 = var1;
- }
- }
-